package summer_vacation.xuqianlan;
import java.util.Scanner;
/**
 * Created by lenovo on 2015/9/2.
 */
public class Test_22 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int c=input.nextInt();
        if(c%5==0 && c%7==0){
            System.out.println("yes");
        }else{
            System.out.println("no");
        }
    }
}
